package com.central.modules.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.central.modules.sys.entity.SysDictDataEntity;
import com.central.modules.sys.model.AddSysDictDataRequest;
import com.central.modules.sys.model.SysDictDataQueryBean;

import java.util.List;

public interface SysDictDataService extends IService<SysDictDataEntity> {


    //分页查询
    IPage<SysDictDataEntity> searchSysDictDatas(SysDictDataQueryBean queryBean);

    //添加
    boolean addSysDictData(AddSysDictDataRequest request);

    //修改
    boolean updateSysDictData(Long id, AddSysDictDataRequest request);

    //删除
    boolean removeSysDictData(Long id);

    //清空
    boolean cleanSysDictDataByTypeId(Long dictTypeId);

    //查询某个字典下的所有值
    List<SysDictDataEntity> findAllByTypeId(Long dictTypeId);
}
